package genedit.model.graph.classModel;

import genedit.model.graph.GraphDocument;
import genedit.model.graph.MyRect;
import genedit.model.graph.Property;

import java.awt.Dimension;
import java.awt.geom.Point2D;

public class InterfaceModel  extends MyRect {
	private static final long serialVersionUID = 1L;

	public InterfaceModel(GraphDocument parent) {
		super(parent);
		initProperties();
	}

	public InterfaceModel(GraphDocument parent, Point2D position, Dimension dimension) {
		super(parent, position, dimension);
		initProperties();
	}

	public InterfaceModel(GraphDocument parent, Point2D position, Dimension dimension, String name) {
		super(parent, position, dimension, name);
		initProperties();
	}

	private void initProperties() {
		Property methods = new Property("methods");
		methods.setValue(new GMethods());
		Property attributes = new Property("attributes");
		attributes.setValue(new GAttributes());
		super.addProperties(attributes);
		super.addProperties(methods);
	}

}